﻿#pragma once
/**
@author 何炜
@date 2011/4/27
@brief .
@details
*/

namespace GLL
{
	class Updateable
	{
	public:
		bool OnUpdate(float TSLF){
			if(!IsFinished()){
				DoOnUpdate(TSLF);
			}
		}

		/**.
		子类实现
		*/
		virtual bool IsFinished(){return false;}

		/**每帧更新.
		子类实现
		@param TSLF Time Since Last Frame
		*/
		virtual void DoOnUpdate(float TSLF){}
	};

};
